import request from '@/utils/request'

export const articleTypeList = function(params){
  return request({
    url: '/article_type/list',
    method: 'get',
    params: params,
  })
}

export const articleTypeAdd = function(params){
  return request({
    url: '/article_type/add',
    method: 'post',
    data: params,
  })
}


export const articleTypeEditGet = function(params){
  return request({
    url: '/article_type/edit',
    method: 'get',
    params: params,
  })
}

export const articleTypeEditPost = function(params){
  return request({
    url: '/article_type/edit',
    method: 'post',
    data: params,
  })
}

export const articleTypeDel = function(params){
  return request({
    url: '/article_type/del',
    method: 'post',
    data: params,
  })
}


export const firstTypeList = function(params){
  return request({
    url: '/article_type/first_type',
    method: 'get',
    params: params,
  })
}